package com.lagou.config;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * 核心配置类，包括数据库配置信息，Mapper映射配置文件路径
 * @author shenguotao
 */
public class Configuration {
    /**
     * 数据源
     */
    private DataSource dataSource;
    /**
     * 集合 key:statementId namespace.id value:MapperStatement
     */
    private Map<String,MapperStatement> mapperStatementMap = new HashMap<>();

    public DataSource  getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource  dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MapperStatement> getMapperStatementMap() {
        return mapperStatementMap;
    }

    public void setMapperStatementMap(Map<String, MapperStatement> mapperStatementMap) {
        this.mapperStatementMap = mapperStatementMap;
    }
}
